<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			class People {
				name = 'xiaoming'
				action = function() {
					console.log('speak')
				}
			}
			let p = new People()
			console.log(p.name)
		</script>
	</body>
</html>